package com.zzzzzz.content.pictext;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.zzzzzz.core.exception.NoSuchModelException;

public interface PicTextService {

	@Transactional
	public Long add(Long userId, PicTextForm picTextForm);

	@Transactional
	public void del(Long id, Long userId) throws NoSuchModelException;

	@Transactional
	public void edit(Long userId, Long id, PicTextForm picTextForm);

	public void editPicIds(Long id, String picIds, Long userId);

	public void plusLooks(Long id);
	
	public void plusReplies(Long id, Long userId);
	
	public void editLikes(Long id, Integer likesPlus);
	
	public List<PicTextListView> find(Long userId, String orderByField, int start, int offset);
	
	public long findByPicTextIdCount(Long userId);

}